<template>
  <el-card >
    <div slot='header' class="header">
      <div class="search-header">
        <span>线上热门搜索</span>
        <el-dropdown>
          <span class="el-dropdown-link">
            <i class='el-icon-more'></i>
          </span>
          <el-dropdown-menu slot="dropdown">
            <el-dropdown-item>黄金糕</el-dropdown-item>
            <el-dropdown-item>狮子头</el-dropdown-item>
            <el-dropdown-item>螺蛳粉</el-dropdown-item>
            <el-dropdown-item >双皮奶</el-dropdown-item>
            <el-dropdown-item >蚵仔煎</el-dropdown-item>
          </el-dropdown-menu>
        </el-dropdown>
      </div>
    </div>
   <!-- 折线图组件 -->
    <div>
      <el-row :gutter='5'>
        <el-col :span="12">
          <lineCharts></lineCharts>
        </el-col>
        <el-col :span="12">
          <lineCharts></lineCharts>
        </el-col>
      </el-row>
    </div>
  <!-- 表格 -->
    <el-table :data="tableData" style="width: 100%" border>
      <el-table-column prop="" label="排名" type='index' width="80" >
      </el-table-column>
      <el-table-column prop="" label="搜索关键字" >
      </el-table-column>
      <el-table-column prop="" label="用户数" sortable width="100">
      </el-table-column>
      <el-table-column prop="" label="周涨幅" sortable >
      </el-table-column>
    </el-table>
    <!-- 分页器 @current-change=""-->
    <el-pagination :total="100" :current-page="1" :page-size="3"  layout="prev, pager, next" class='pagination'></el-pagination>
  </el-card>
</template>

<script>
import lineCharts from './lineChart'
export default {
  name: 'Search',
  data () {
    return {
      tableData: [{}]
    }
  },
  components: {
    lineCharts,
  }
}
</script>

<style  scoped>
.header {
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}
.search-header {
  display: flex;
  justify-content: space-between;
}
.pagination {
  float: right;
}
</style>
